package com.software.backend.login.repository;

import javax.servlet.http.HttpSession;

/**
 * @author 王俊坤
 * @version 1.0
 * @date 2022/12/25 12:54
 */
public interface AuthCodeResository {
    String createAuthCode();

    void saveAuthCode(String authCode, HttpSession session, String phoneNumber);

    void sendMessageToPhone(String authCode, String phoneNumber);

    boolean hasCodeTimeOut(String phoneNumber);

    boolean varifyAuthCode(String authCode, String phoneNumber, HttpSession session);
}
